/**
 * Created by apple on 2017/7/23.
 */
import * as actionTypes from '../constants/userinfo';
//第三步 定义触发后的函数
export function login(data) {
  console.log(data);
  return {
    type:actionTypes.USERINFO_LOGIN,
    data
  }
}


export function updateCityName(data) {
  //data即为传递的参数
  console.log(data);
  console.log(actionTypes);
  return {
    type:actionTypes.UPDATE_CITYNAME,
    data
  }
}